package com;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: dsf
 * @Description:
 * @DateTime: 2025/4/7 9:49
 **/
@SpringBootApplication
@Configurable
@MapperScan("com.aviation.air1.mapper")
@EnableScheduling
@Slf4j
public class Application implements ApplicationRunner {
     @Value("${server.port:8080}")
     private String serverPort;
     @Value("${server.servlet.context-path:}")
     private String contextPath;
     public static void main(String[] args){
          SpringApplication.run(Application.class);
     }

     @Override
     public void run(ApplicationArguments args) throws Exception {
          log.info("API Document: http://127.0.0.1:{}/", serverPort, contextPath);
     }
}
